//============================================================================
// Name        : Person.cpp
// Author      : CanPN
// Version     :
// Copyright   : NakanPhung
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include "Person.h"

using namespace std;

Person::Person() {
	id = 0;
	name = "";
	dob = "";
	addr = "";

}

Person::Person(int id, string name, string dob, string addr) {
	this->id = id;
	this->name = name;
	this->dob = dob;
	this->addr = addr;

}


void Person::Setname(string name) {
	this->name = name;
}

void Person::Set_dob(string dob) {
	this->dob = dob;
}

void Person::Set_addr(string addr) {
	this->addr = addr;
}

int Person::GetId(){
	return id;
}

string Person::GetName(){
	return name;
}

string Person::GetDob(){
	return dob;
}

string Person::GetAddr(){
	return addr;
}


void Person::Print() {
	cout << "Display information" << endl;
	cout << "ID: " << id << "\nName: " << name.c_str() << "\nDate Of Birth: "
			<< dob.c_str() << "\nAddress: " << addr.c_str();
}


Person::~Person() {
	// TODO Auto-generated destructor stub
}

